home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Tcl / Modes / HTML and CSS Modes / cssProperties.tcl < prev    next >
Encoding:
Text File  |  2001-01-15  |  22.5 KB  |  579 lines

  1. ## -*-Tcl-*-
  2.  # ###################################################################
  3.  #  CSS mode - tools for editing CSS documents
  4.  # 
  5.  #  FILE: "cssProperties.tcl"
  6.  #                                    created: 99-06-27 16.56.02 
  7.  #                                last update: 01-01-15 20.20.20 
  8.  #  Author: Johan Linde
  9.  #  E-mail: <alpha_www_tools@go.to>
  10.  #     www: <http://go.to/alpha_www_tools>
  11.  #  
  12.  # Version: 2.0
  13.  # 
  14.  # Copyright 1997-2001 by Johan Linde
  15.  #  
  16.  # This program is free software; you can redistribute it and/or modify
  17.  # it under the terms of the GNU General Public License as published by
  18.  # the Free Software Foundation; either version 2 of the License, or
  19.  # (at your option) any later version.
  20.  # 
  21.  # This program is distributed in the hope that it will be useful,
  22.  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.  # GNU General Public License for more details.
  25.  # 
  26.  # You should have received a copy of the GNU General Public License
  27.  # along with this program; if not, write to the Free Software
  28.  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29.  # 
  30.  # ###################################################################
  31.  ##
  32.  
  33. proc cssProperties.tcl {} {}
  34.  
  35. #===============================================================================
  36. # ◊◊◊◊ Definition of CSS properties ◊◊◊◊ #
  37. #
  38. # The following arrays are defined:
  39. # css::Property(<property>)     = type of property
  40. # css::Choices(<property>)      = list of allowed values for properties of type 'choices' 
  41. #                                 or similar
  42. # css::Range(<property>)        = allowed range of values for properties taking a 
  43. #                                 numerical value
  44. # css::Group(<property>)        = for properties being a group of other properties, 
  45. #                                 this defines the group
  46. # css::Shorthand(<property>)    = flag telling if a group defines a possible shorthand notation
  47. # css::MakeShort(<property>)    = a proc for shorthand properties to take the individual 
  48. #                                 values and make the shorthand version
  49. # css::ExpandProps(<property>)  = a proc for shorthand properties to take the shorthand value
  50. #                                 and expand it to the individual values
  51. # css::Descriptor(<descriptor>) = type of descriptor
  52. #
  53. # The following procs are defined for each property type.
  54. # css::BuildDialog<proptype>   = the proc for building the property dialog
  55. #                                (found in cssBuildDialog.tcl)
  56. # css::ReadDialog<proptype>    = the proc for reading the property dialog
  57. #                                (found in cssReadProperties.tcl)
  58. # css::GetProperties<proptype> = the proc for parsing the property value in a document
  59. #                                and get a default value for the property dialog
  60. #                                (found in cssGetProperties.tcl)
  61. # css::Complete<proptype>      = to complete the property value when using electric completions
  62. #                                (found in CSSCompletions.tcl)
  63. #===============================================================================
  64.  
  65. # Units
  66.  
  67. set css::Units(length) {em ex px pt cm mm in pc}
  68. set css::Units(angle) {deg grad rad}
  69. set css::Units(time) {ms s}
  70. set css::Units(frequency) {Hz kHz}
  71. set css::Units(number) {}
  72.  
  73. # Some at-rules
  74. set css::Property(@charset) @charset
  75. set css::Property(@import) @import
  76. set css::Property(@media) @media
  77. set css::Property(@page) @page
  78.  
  79. # Box model
  80.  
  81. set css::Property(margin-top) lpc
  82. set css::Choices(margin-top) auto
  83. set css::Range(margin-top) {-i:i}
  84. set css::Property(margin-right) lpc
  85. set css::Choices(margin-right) auto
  86. set css::Range(margin-right) {-i:i}
  87. set css::Property(margin-bottom) lpc
  88. set css::Choices(margin-bottom) auto
  89. set css::Range(margin-bottom) {-i:i}
  90. set css::Property(margin-left) lpc
  91. set css::Choices(margin-left) auto
  92. set css::Range(margin-left) {-i:i}
  93. set css::Property(margin) group
  94. set css::Group(margin) {margin-top margin-right margin-bottom margin-left}
  95. set css::Shorthand(margin) 1
  96. set css::ExtraDialog(margin) css::AllValuesBox
  97. set css::ReadExtraDialog(margin) css::ReadAllValuesBox
  98. set css::AddMissingValues(margin) css::AddMissingVals
  99. set css::MakeShort(margin) css::MakeShort4lengths
  100. set css::ExpandProps(margin) css::ExpandPile
  101.  
  102. set css::Property(padding-top) lp
  103. set css::Range(padding-top) {0:i}
  104. set css::Property(padding-right) lp
  105. set css::Range(padding-right) {0:i}
  106. set css::Property(padding-bottom) lp
  107. set css::Range(padding-bottom) {0:i}
  108. set css::Property(padding-left) lp
  109. set css::Range(padding-left) {0:i}
  110. set css::Property(padding) group
  111. set css::Group(padding) {padding-top padding-right padding-bottom padding-left}
  112. set css::Shorthand(padding) 1
  113. set css::ExtraDialog(padding) css::AllValuesBox
  114. set css::ReadExtraDialog(padding) css::ReadAllValuesBox
  115. set css::AddMissingValues(padding) css::AddMissingVals
  116. set css::MakeShort(padding) css::MakeShort4lengths
  117. set css::ExpandProps(padding) css::ExpandPile
  118.  
  119. set css::Property(border-top-width) lc
  120. set css::Choices(border-top-width) {thin medium thick}
  121. set css::Range(border-top-width) {0:i}
  122. set css::Property(border-right-width) lc
  123. set css::Choices(border-right-width) {thin medium thick}
  124. set css::Range(border-right-width) {0:i}
  125. set css::Property(border-bottom-width) lc
  126. set css::Choices(border-bottom-width) {thin medium thick}
  127. set css::Range(border-bottom-width) {0:i}
  128. set css::Property(border-left-width) lc
  129. set css::Choices(border-left-width) {thin medium thick}
  130. set css::Range(border-left-width) {0:i}
  131. set css::Property(border-width) group
  132. set css::Group(border-width) {border-top-width border-right-width border-bottom-width border-left-width}
  133. set css::Shorthand(border-width) 1
  134. set css::ExtraDialog(border-width) css::AllValuesBox
  135. set css::ReadExtraDialog(border-width) css::ReadAllValuesBox
  136. set css::AddMissingValues(border-width) css::AddMissingVals
  137. set css::MakeShort(border-width) css::MakeShort4lengths
  138. set css::ExpandProps(border-width) css::ExpandPile
  139.  
  140. set css::Property(border-top-color) color
  141. set css::Property(border-right-color) color
  142. set css::Property(border-bottom-color) color
  143. set css::Property(border-left-color) color
  144. set css::Property(border-color) group
  145. set css::Group(border-color) {border-top-color border-right-color border-bottom-color border-left-color}
  146. set css::Shorthand(border-color) 1
  147. set css::ExtraDialog(border-color) css::AllValuesBox
  148. set css::ReadExtraDialog(border-color) css::ReadAllValuesBox
  149. set css::AddMissingValues(border-color) css::AddMissingVals
  150. set css::MakeShort(border-color) css::MakeShort4lengths
  151. set css::ExpandProps(border-color) css::ExpandPile
  152.  
  153. set css::Property(border-top-style) choices
  154. set css::Choices(border-top-style) {dotted dashed solid double groove ridge inset outset hidden none}
  155. set css::Property(border-right-style) choices
  156. set css::Choices(border-right-style) {dotted dashed solid double groove ridge inset outset hidden none}
  157. set css::Property(border-bottom-style) choices
  158. set css::Choices(border-bottom-style) {dotted dashed solid double groove ridge inset outset hidden none}
  159. set css::Property(border-left-style) choices
  160. set css::Choices(border-left-style) {dotted dashed solid double groove ridge inset outset hidden none}
  161. set css::Property(border-style) group
  162. set css::Group(border-style) {border-top-style border-right-style border-bottom-style border-left-style}
  163. set css::Shorthand(border-style) 1
  164. set css::ExtraDialog(border-style) css::AllValuesBox
  165. set css::ReadExtraDialog(border-style) css::ReadAllValuesBox
  166. set css::AddMissingValues(border-style) css::AddMissingVals
  167. set css::MakeShort(border-style) css::MakeShort4lengths
  168. set css::ExpandProps(border-style) css::ExpandPile
  169.  
  170. set css::Property(border-top) group
  171. set css::Group(border-top) {border-top-width border-top-color border-top-style}
  172. set css::Shorthand(border-top) 1
  173. set css::MakeShort(border-top) css::MakeShortPile
  174. set css::ExpandProps(border-top) css::ExpandPile
  175. set css::Property(border-right) group
  176. set css::Group(border-right) {border-right-width border-right-color border-right-style}
  177. set css::Shorthand(border-right) 1
  178. set css::MakeShort(border-right) css::MakeShortPile
  179. set css::ExpandProps(border-right) css::ExpandPile
  180. set css::Property(border-bottom) group
  181. set css::Group(border-bottom) {border-bottom-width border-bottom-color border-bottom-style}
  182. set css::Shorthand(border-bottom) 1
  183. set css::MakeShort(border-bottom) css::MakeShortPile
  184. set css::ExpandProps(border-bottom) css::ExpandPile
  185. set css::Property(border-left) group
  186. set css::Group(border-left) {border-left-width border-left-color border-left-style}
  187. set css::Shorthand(border-left) 1
  188. set css::MakeShort(border-left) css::MakeShortPile
  189. set css::ExpandProps(border-left) css::ExpandPile
  190.  
  191. set css::Property(border) border
  192. set css::Group(border) {border-top-width border-top-style border-top-color}
  193. set css::Shorthand(border) 1
  194. set css::MakeShort(border) css::MakeShortPile
  195. set css::ExpandProps(border) css::ExpandBorder
  196.  
  197. # Visual formatting
  198.  
  199. set css::Property(display) choices
  200. set css::Choices(display) {block inline list-item marker run-in compact table 
  201. inline-table table-row-group table-header-group table-footer-group table-row
  202. table-column-group table-column table-cell table-caption none}
  203.  
  204. set css::Property(position) choices
  205. set css::Choices(position) {static relative absolute fixed}
  206. set css::Property(top) lpc
  207. set css::Range(top) {-i:i}
  208. set css::Choices(top) auto
  209. set css::Property(right) lpc
  210. set css::Range(right) {-i:i}
  211. set css::Choices(right) auto
  212. set css::Property(bottom) lpc
  213. set css::Range(bottom) {-i:i}
  214. set css::Choices(bottom) auto
  215. set css::Property(left) lpc
  216. set css::Range(left) {-i:i}
  217. set css::Choices(left) auto
  218. set css::Property(positioning) group
  219. set css::Group(positioning) {position top right bottom left}
  220. set css::Shorthand(positioning) 0
  221.  
  222. set css::Property(float) choices
  223. set css::Choices(float) {left right none}
  224. set css::Property(clear) choices
  225. set css::Choices(clear) {left right both none}
  226. set css::Property(floats) group
  227. set css::Group(floats) {float clear}
  228. set css::Shorthand(floats) 0
  229.  
  230. set css::Property(z-index) ic
  231. set css::Choices(z-index) auto
  232. set css::Range(z-index) {-i:i}
  233.  
  234. set css::Property(direction) choices
  235. set css::Choices(direction) {ltr rtl}
  236. set css::Property(unicode-bidi) choices
  237. set css::Choices(unicode-bidi) {embed bidi-override normal}
  238. set css::Property(text-direction) group
  239. set css::Group(text-direction) {direction unicode-bidi}
  240. set css::Shorthand(text-direction) 0
  241.  
  242. set css::Property(width) lpc
  243. set css::Choices(width) auto
  244. set css::Range(width) {0:i}
  245. set css::Property(min-width) lp
  246. set css::Range(min-width) {0:i}
  247. set css::Property(max-width) lpc
  248. set css::Choices(max-width) none
  249. set css::Range(max-width) {0:i}
  250. set css::Property(height) lpc
  251. set css::Choices(height) auto
  252. set css::Range(height) {0:i}
  253. set css::Property(min-height) lp
  254. set css::Range(min-height) {0:i}
  255. set css::Property(max-height) lpc
  256. set css::Choices(max-height) none
  257. set css::Range(max-height) {0:i}
  258. set css::Property(content-size) group
  259. set css::Group(content-size) {width min-width max-width height min-height max-height}
  260. set css::Shorthand(content-size) 0
  261.  
  262. set css::Property(vertical-align) lpc
  263. set css::Choices(vertical-align) {sub super top text-top middle bottom text-bottom baseline}
  264. set css::Range(vertical-align) {-i:i}
  265.  
  266. set css::Property(overflow) choices
  267. set css::Choices(overflow) {hidden scroll auto visible}
  268. set css::Property(clip) clip
  269. set css::Range(clip) {-i:i}
  270. set css::Choices(clip) auto
  271. set css::Property(visibility) choices
  272. set css::Choices(visibility) {visible hidden collapse}
  273. set css::Property(visual-effects) group
  274. set css::Group(visual-effects) {overflow clip visibility}
  275. set css::Shorthand(visual-effects) 0
  276.  
  277. # Generated content
  278.  
  279. set css::Property(content) content
  280. set css::Choices(content) {open-quote close-quote no-open-quote no-close-quote}
  281.  
  282. set css::Property(quotes) quotes
  283. set css::Choices(quotes) none
  284.  
  285. set css::Property(counter-reset) counter
  286. set css::Choices(counter-reset) none
  287. set css::Property(counter-increment) counter
  288. set css::Choices(counter-increment) none
  289. set css::Property(counters) group
  290. set css::Group(counters) {counter-reset counter-increment}
  291. set css::Shorthand(counters) 0
  292.  
  293. set css::Property(marker-offset) lc
  294. set css::Choices(marker-offset) auto
  295. set css::Range(marker-offset) {-i:i}
  296.  
  297. set css::Property(list-style-type) choices
  298. set css::Choices(list-style-type) {disc circle square decimal decimal-leading-zero
  299. lower-roman upper-roman lower-greek lower-alpha lower-latin upper-alpha upper-latin
  300. hebrew armenian georgian cjk-ideographic hiragana katakana hiragana-iroha
  301. katakana-iroha none}
  302. set css::Property(list-style-image) uc
  303. set css::Choices(list-style-image) auto
  304. set css::Property(list-style-position) choices
  305. set css::Choices(list-style-position) {inside outside}
  306. set css::Property(list-style) group
  307. set css::Group(list-style) {list-style-type list-style-image list-style-position}
  308. set css::Shorthand(list-style) 1
  309. set css::MakeShort(list-style) css::MakeShortPile
  310. set css::ExpandProps(list-style) css::ExpandListStyle
  311.  
  312. # Paged media
  313.  
  314. set css::Property(size) size
  315. set css::Choices(size) {portrait landscape auto}
  316. set css::Range(size) {0:i}
  317.  
  318. set css::Property(marks) marks
  319.  
  320. set css::Property(page-break-before) choices
  321. set css::Choices(page-break-before) {always avoid left right auto}
  322. set css::Property(page-break-after) choices
  323. set css::Choices(page-break-after) {always avoid left right auto}
  324. set css::Property(page-break-inside) choices
  325. set css::Choices(page-break-inside) {avoid auto}
  326. set css::Property(orphans) integer
  327. set css::Range(orphans) {0:i}
  328. set css::Property(widows) integer
  329. set css::Range(widows) {0:i}
  330. set css::Property(page-breaks) group
  331. set css::Group(page-breaks) {page-break-before page-break-after page-break-inside orphans widows}
  332. set css::Shorthand(page-breaks) 0
  333.  
  334. set css::Property(page) page
  335.  
  336. # Color & background
  337.  
  338. set css::Property(color) color
  339.  
  340. set css::Property(background-color) cc
  341. set css::Choices(background-color) transparent
  342. set css::Property(background-image) uc
  343. set css::Choices(background-image) none
  344. set css::Property(background-repeat) choices
  345. set css::Choices(background-repeat) {repeat-x repeat-y no-repeat repeat}
  346. set css::Property(background-attachment) choices
  347. set css::Choices(background-attachment) {fixed scroll}
  348. set css::Property(background-position) backpos
  349. set css::Range(background-position) {-i:i}
  350. set css::Property(background) group
  351. set css::Group(background) {background-color background-image background-repeat
  352. background-attachment background-position}
  353. set css::Shorthand(background) 1
  354. set css::MakeShort(background) css::MakeShortPile
  355. set css::ExpandProps(background) css::ExpandBackground
  356.  
  357. # Fonts
  358.  
  359. set css::Property(font-family) family
  360. set css::Choices(font-family) {serif sans-serif cursive fantasy monospace}
  361. set css::Property(font-style) choices
  362. set css::Choices(font-style) {italic oblique normal}
  363. set css::Property(font-variant) choices
  364. set css::Choices(font-variant) {small-caps normal}
  365. set css::Property(font-weight) choices
  366. set css::Choices(font-weight) {bold bolder lighter 100 200 300 400 500 600 700 800 900 normal}
  367. set css::Property(font-size) lpc
  368. set css::Choices(font-size) {larger smaller xx-small x-small small medium large x-large xx-large}
  369. set css::Range(font-size) {0:i}
  370. set css::Property(line-height) nlpc
  371. set css::Choices(line-height) normal
  372. set css::Range(line-height) {0:i}
  373. set css::Property(font) group
  374. set css::Group(font) {font-style font-variant font-weight font-size line-height font-family}
  375. set css::Shorthand(font) 1
  376. set css::MakeShort(font) css::MakeShortFont
  377. set css::ExpandProps(font) css::ExpandFont
  378.  
  379. set css::Property(font-stretch) choices
  380. set css::Choices(font-stretch) {wider narrower ultra-condensed extra-condensed condensed 
  381. semi-condensed semi-expanded expanded extra-expanded ultra-expanded normal}
  382. set css::Property(font-size-adjust) nc
  383. set css::Choices(font-size-adjust) none
  384. set css::Range(font-size-adjust) {0:i}
  385. set css::Property(other-properties) group
  386. set css::Group(other-properties) {font-stretch font-size-adjust}
  387. set css::Shorthand(other-properties) 0
  388.  
  389. set css::Descriptor(font-family) family
  390. set css::Descriptor(font-style) fontstyle
  391. set css::Descriptor(font-variant) fontvariant
  392. set css::Descriptor(font-weight) fontstyle
  393. set css::Descriptor(font-stretch) fontstyle
  394. set css::Descriptor(font-size) fontsize
  395. set css::Descriptor(font-selection) group
  396. set css::Group(font-selection) {font-style font-variant font-weight font-stretch font-size font-family}
  397. set css::Shorthand(font-selection) 0
  398.  
  399. set css::Descriptor(panose-1) panose
  400. set css::Range(panose-1) {0:i}
  401. set css::Descriptor(stemv) number
  402. set css::Range(stemv) {0:i}
  403. set css::Descriptor(stemh) number
  404. set css::Range(stemh) {0:i}
  405. set css::Descriptor(slope) number
  406. set css::Range(slope) {-i:i}
  407. set css::Descriptor(cap-height) number
  408. set css::Range(cap-height) {0:i}
  409. set css::Descriptor(x-height) number
  410. set css::Range(x-height) {0:i}
  411. set css::Descriptor(ascent) number
  412. set css::Range(ascent) {0:i}
  413. set css::Descriptor(descent) number
  414. set css::Range(descent) {0:i}
  415. set css::Descriptor(matching) group 
  416. set css::Group(matching) {panose-1 stemv stemh slope cap-height x-height ascent descent}
  417. set css::Shorthand(matching) 0
  418.  
  419. set css::Descriptor(widths) widths
  420. set css::Descriptor(bbox) bbox
  421. set css::Range(bbox) {-i:i}
  422. set css::Descriptor(definition-src) url
  423. set css::Descriptor(synthesis) group
  424. set css::Group(synthesis) {widths bbox definition-src}
  425. set css::Shorthand(synthesis) 0
  426.  
  427. set css::Descriptor(baseline) number
  428. set css::Range(baseline) {0:i}
  429. set css::Descriptor(centerline) number
  430. set css::Range(centerline) {0:i}
  431. set css::Descriptor(mathline) number
  432. set css::Range(mathline) {0:i}
  433. set css::Descriptor(topline) number
  434. set css::Range(topline) {0:i}
  435. set css::Descriptor(alignment) group
  436. set css::Group(alignment) {baseline centerline mathline topline}
  437. set css::Shorthand(alignment) 0
  438.  
  439. set css::Descriptor(unicode-range) unirange
  440. set css::Descriptor(units-per-em) number
  441. set css::Range(units-per-em) {0:i}
  442. set css::Descriptor(src) src
  443. set css::Descriptor(other-descriptors) group
  444. set css::Group(other-descriptors) {unicode-range units-per-em src}
  445. set css::Shorthand(other-descriptors) 0
  446.  
  447. # Text
  448.  
  449. set css::Property(text-indent) lp
  450. set css::Range(text-indent) {-i:i}
  451. set css::Property(text-align) textalign
  452. set css::Choices(text-align) {left right center justify}
  453. set css::Property(text-decoration) textdecoration
  454. set css::Choices(text-decoration) {underline overline line-through blink}
  455. set css::Property(letter-spacing) lc
  456. set css::Choices(letter-spacing) normal
  457. set css::Range(letter-spacing) {-i:i}
  458. set css::Property(word-spacing) lc
  459. set css::Choices(word-spacing) normal
  460. set css::Range(word-spacing) {-i:i}
  461. set css::Property(text-transform) choices
  462. set css::Choices(text-transform) {capitalize uppercase lowercase none}
  463. set css::Property(white-space) choices
  464. set css::Choices(white-space) {pre nowrap normal}
  465. set css::Property(text) group
  466. set css::Group(text) {text-indent text-align text-decoration letter-spacing
  467. word-spacing text-transform white-space}
  468. set css::Shorthand(text) 0
  469.  
  470. set css::Property(text-shadow) textshadow
  471. set css::Range(horizontal) {-i:i}
  472. set css::Range(vertical) {-i:i}
  473. set css::Range(blur) {0:i}
  474.  
  475. # Tables
  476.  
  477. set css::Property(caption-side) choices
  478. set css::Choices(caption-side) {top bottom left right}
  479. set css::Property(table-layout) choices
  480. set css::Choices(table-layout) {fixed auto}
  481. set css::Property(border-collapse) choices
  482. set css::Choices(border-collapse) {separate collapse}
  483. set css::Property(border-spacing) borderspacing
  484. set css::Range(border-spacing) {0:i}
  485. set css::Property(empty-cells) choices
  486. set css::Choices(empty-cells) {hide show}
  487. set css::Property(speak-header) choices
  488. set css::Choices(speak-header) {always once}
  489. set css::Property(tables) group
  490. set css::Group(tables) {caption-side table-layout border-collapse border-spacing empty-cells
  491. speak-header}
  492. set css::Shorthand(tables) 0
  493.  
  494. # User interface
  495.  
  496. set css::Property(cursor) cursor
  497. set css::Choices(cursor) {auto crosshair default pointer move e-resize ne-resize nw-resize
  498. n-resize se-resize sw-resize s-resize w-resize text wait help}
  499.  
  500. set css::Property(outline-width) lc
  501. set css::Choices(outline-width) {thin medium thick}
  502. set css::Range(outline-width) {0:i}
  503. set css::Property(outline-style)  choices
  504. set css::Choices(outline-style) {dotted dashed solid double groove ridge inset outset hidden none}
  505. set css::Property(outline-color) cc
  506. set css::Choices(outline-color) invert
  507. set css::Property(outline) group
  508. set css::Group(outline) {outline-width outline-style outline-color}
  509. set css::Shorthand(outline) 1
  510. set css::MakeShort(outline) css::MakeShortPile
  511. set css::ExpandProps(outline) css::ExpandPile
  512.  
  513. # Aural
  514.  
  515. set css::Property(volume) npc
  516. set css::Choices(volume) {silent x-soft soft medium loud x-loud}
  517. set css::Range(volume) {0:100}
  518.  
  519. set css::Property(pause-before) tp
  520. set css::Range(pause-before) {0:i}
  521. set css::Property(pause-after) tp
  522. set css::Range(pause-after) {0:i}
  523. set css::Property(pause) group
  524. set css::Group(pause) {pause-before pause-after}
  525. set css::Shorthand(pause) 1
  526. set css::MakeShort(pause) css::MakeShortPileIfBoth
  527. set css::ExpandProps(pause) css::ExpandPileIfBoth
  528.  
  529. set css::Property(cue-before) uc
  530. set css::Choices(cue-before) none
  531. set css::Property(cue-after) uc
  532. set css::Choices(cue-after) none
  533. set css::Property(cue) group
  534. set css::Group(cue) {cue-before cue-after}
  535. set css::Shorthand(cue) 1
  536. set css::MakeShort(cue) css::MakeShortPileIfBoth
  537. set css::ExpandProps(cue) css::ExpandCue
  538.  
  539. set css::Property(play-during) playduring
  540. set css::Choices(play-during) {auto none}
  541.  
  542. set css::Property(azimuth) azimuth
  543. set css::Choices(azimuth) {leftwards rightwards}
  544. set css::Range(azimuth) {-360:360}
  545. set css::Property(elevation) ac
  546. set css::Choices(elevation) {below level above higher lower}
  547. set css::Range(elevation) {-90:90}
  548. set css::Property(spatial) group
  549. set css::Group(spatial) {azimuth elevation}
  550. set css::Shorthand(spatial) 0
  551.  
  552. set css::Property(speech-rate) nc
  553. set css::Choices(speech-rate) {x-slow slow medium fast x-fast faster slower}
  554. set css::Range(speech-rate) {0:i}
  555. set css::Property(voice-family) family
  556. set css::Choices(voice-family) {male female child}
  557. set css::Property(pitch) fc
  558. set css::Choices(pitch) {x-low low medium high x-high}
  559. set css::Range(pitch) {0:i}
  560. set css::Property(pitch-range) number
  561. set css::Range(pitch-range) {0:100}
  562. set css::Property(stress) number
  563. set css::Range(stress) {0:100}
  564. set css::Property(richness) number
  565. set css::Range(richness) {0:100}
  566. set css::Property(voice) group
  567. set css::Group(voice) {speech-rate voice-family pitch pitch-range stress richness}
  568. set css::Shorthand(voice) 0
  569.  
  570. set css::Property(speak) choices
  571. set css::Choices(speak) {none spell-out normal}
  572. set css::Property(speak-punctuation) choices
  573. set css::Choices(speak-punctuation) {code none}
  574. set css::Property(speak-numeral) choices
  575. set css::Choices(speak-numeral) {digits continous}
  576. set css::Property(speech) group
  577. set css::Group(speech) {speak speak-punctuation speak-numeral}
  578. set css::Shorthand(speech) 0
  579.